package com.lanqiao.testwork;

import java.util.Scanner;

public class Test25 {

	public static void main(String[] args) {
		test();
	}

	/**
	 * 判断一个五位数是不是回文数
	 */
	private static void test() {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个五位数");
		int n = sc.nextInt();
		
		int gNum = n % 10;
		int sNum = (n % 100 - gNum)/10;
		int qNum = n/1000;
		if(qNum == 10*gNum +sNum) {
			System.out.println(n +"是回文数");
		}else {
			System.out.println(n +"不是回文数");
		}
	}

}
